package com.example.module_device.api

import com.example.lib_net.BaseResponse
import com.example.module_device.model.DeviceEntityItem
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface DeviceApiService {

    @GET("/api/devices")
    suspend fun getDeviceAll() : BaseResponse<MutableList<DeviceEntityItem>>

    @POST("/api/devices")
    suspend fun getAddDevice(@Body param : DeviceEntityItem) : BaseResponse<MutableList<DeviceEntityItem>>

}